/**
 * JAVACC DEMO 1.0
 */
package com.apache.uct.dao;

import com.apache.database.db.DaoImpl;

/**
 * description:  信息缓存处理DAO
 *
 * @author Hou Dayu 创建时间：2016-5-13
 */
public class CacheDaoImpl extends DaoImpl {

    /**
     * TODO 简单描述该方法的实现功能（可选）.
     *
     * @see com.apache.database.db.IDao#getSql(int)
     */
    public String getSql(int type) {
        String sql = "";
        switch (type) {
        case 1:
            sql = "select roleId from RoleGive where userId=:userId ";
            break;
        case 2:
            sql = " from Act where actId in ( select actId from ActGive where roleId=:roleId and giveType =:giveType )  ";
            break;
        default:
            sql = "";
        }
        return sql;
    }

    /**
     * TODO 简单描述该方法的实现功能（可选）.
     *
     * @see com.apache.database.db.IDao#initSystemCache()
     */
    public void initSystemCache() {

        // TODO Auto-generated method stub

    }

}
